import 'package:xin_he/generated/json/base/json_field.dart';
import 'package:xin_he/generated/json/xin_he_my_studio_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class XinHeMyStudioEntity {
	String? address;
	String? codeName;
	String? createTime;
	int? fCreateUserId;
	int? fUpdateUserId;
	int? fUserId;
	int? id;
	String? latitude;
	String? longitude;
	String? name;
	String? remark;
	int? removed;
	int? seq;
	String? updateTime;
	@JSONField(name: "version_num")
	int? versionNum;

	XinHeMyStudioEntity();

	factory XinHeMyStudioEntity.fromJson(Map<String, dynamic> json) => $XinHeMyStudioEntityFromJson(json);

	Map<String, dynamic> toJson() => $XinHeMyStudioEntityToJson(this);

	XinHeMyStudioEntity copyWith({String? address, String? codeName, String? createTime, int? fCreateUserId, int? fUpdateUserId, int? fUserId, int? id, String? latitude, String? longitude, String? name, String? remark, int? removed, int? seq, String? updateTime, int? versionNum}) {
		return XinHeMyStudioEntity()
			..address= address ?? this.address
			..codeName= codeName ?? this.codeName
			..createTime= createTime ?? this.createTime
			..fCreateUserId= fCreateUserId ?? this.fCreateUserId
			..fUpdateUserId= fUpdateUserId ?? this.fUpdateUserId
			..fUserId= fUserId ?? this.fUserId
			..id= id ?? this.id
			..latitude= latitude ?? this.latitude
			..longitude= longitude ?? this.longitude
			..name= name ?? this.name
			..remark= remark ?? this.remark
			..removed= removed ?? this.removed
			..seq= seq ?? this.seq
			..updateTime= updateTime ?? this.updateTime
			..versionNum= versionNum ?? this.versionNum;
	}

	@override
	String toString() {
		return jsonEncode(this);
	}
}